﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Student:Person
    {
        private string Major;
        private string Grada;
        public string major
        {
            get { return this.Major; }
            set { this.Major = value; }
        }
        public string grada
        {
            get { return this.Grada; }
            set { this.Grada = value; }
        }
        public void dh()
        {
            this.ID = 1;
            this.name = "张四";
            this.sex = "男";
            this.cardid = 1234456646;
            this.tel = 12213144;
            this.major = "软件";
            this.grada="大一";
            Console.WriteLine("编号：{0}，姓名：{1}，性别：{2}，身份证：{3}，联系方式：{4}，专业：{5}，年级：{6}", this.ID, this.name, this.sex, this.cardid, this.tel, this.major, this.grada);

        }
    }
}